import { getloginName, register } from '@/api/register'
import { setToken } from '@/api/cookie'
export default {
    namespaced: true,
    state: {

    },
    mutations: {

    },
    actions: {
        async  setloginName({ commit }, loginanem) {
            const res = await getloginName(loginanem);
            console.log(res.data)
            return res.data.data
        },
        async Register({ commit }, form) {
            form.roles = ''
            const res = await register(form)
        }
    },
    getters: {}
}